<template>
  <j-modal-no-footer
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel"
    cancelText="关闭">


    <MesTechnologyProcedureMaterialBomList :procedureId="procedureId" v-if="stationAttribute==='1' || stationAttribute==='3'"></MesTechnologyProcedureMaterialBomList>
    <hr v-if=" stationAttribute==='3'">
    <MesTechnologyProcedureCheckBomList :procedureId="procedureId" :checkType="checkType" v-if="stationAttribute==='2' || stationAttribute==='3'"></MesTechnologyProcedureCheckBomList>
  </j-modal-no-footer>
</template>

<script>

  import '@/assets/less/TableExpand.less'
  import { mixinDevice } from '@/utils/mixin'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import { filterMultiDictText } from '@/components/dict/JDictSelectUtil'
  import { getAction } from '@/api/manage'
  import MesTechnologyProcedureMaterialBomList from './MesTechnologyProcedureMaterialBomList'
  import MesTechnologyProcedureCheckBomList from './MesTechnologyProcedureCheckBomList'

  export default {
    name: 'MesTechnologyProcedureDOM',
    data() {
      return {
        title: '制定BOM',
        width: 896,
        visible: false,
        disableSubmit: false,

        stationAttribute:'',
        procedureId:'',
        checkType:''

      }
    },
    components: { MesTechnologyProcedureMaterialBomList,MesTechnologyProcedureCheckBomList },
    created() {
    },
    methods: {
      show(procedureId,stationAttribute,checkType) {
        this.visible = true,
        this.stationAttribute=stationAttribute;
        this.procedureId = procedureId;
        this.checkType=checkType;
      },
      handleCancel() {
        this.close()
      },
      close() {
        this.$emit('close')
        this.visible = false
      }
    }
  }
</script>

<style scoped>

</style>